import Layout from '@/layout'

const advertisingSpaceRouter = {
  path: '/device',
  component: Layout,
  redirect: '/device/report/checklist',
  name: 'device',
  meta: {
    title: '设备部',
    icon: 'job'
  },
  children: [
    {
      path: '/device/material',
      name: 'material',
      component: () => import('@/views/device/material/index'),
      meta: { title: '物料管理', icon: '' },
      children: [
        {
          path: 'crossMonth',
          component: () => import('@/views/device/material/crossMonth'),
          name: 'crossMonth',
          meta: { title: '跨月调整', icon: '' }
        },
        {
          path: 'receipt',
          component: () => import('@/views/device/material/receipt'),
          name: 'receipt',
          meta: { title: '物料入库', icon: '' }
        },
        {
          path: 'receiptReport',
          component: () => import('@/views/device/material/receiptReport'),
          name: 'receiptReport',
          meta: { title: '物料入库报表', icon: '' }
        },
        {
          path: 'usage',
          component: () => import('@/views/device/material/usage'),
          name: 'usage',
          meta: { title: '物料领用', icon: '' }
        },
        {
          path: 'usageReport',
          component: () => import('@/views/device/material/usageReport'),
          name: 'usageReport',
          meta: { title: '物料领用报表', icon: '' }
        },
        {
          path: 'summary',
          component: () => import('@/views/device/material/summary'),
          name: 'summary',
          meta: { title: '物料进销存汇总表', icon: '' }
        },
        {
          path: 'inventoryReport',
          component: () => import('@/views/device/material/inventoryReport'),
          name: 'inventoryReport',
          meta: { title: '物料库存报表', icon: '' }
        },
        {
          path: 'hydropowerReport',
          component: () => import('@/views/device/material/hydropowerReport'),
          name: 'hydropowerReport',
          meta: { title: '水电报表', icon: '' }
        }
      ]
    },
    {
      path: '/device/deviceMaintenance',
      name: 'deviceMaintenance',
      component: () => import('@/views/device/deviceMaintenance/index'),
      meta: { title: '设备维护', icon: '' },
    },
    {
      path: '/device/registration',
      name: 'registration',
      component: () => import('@/views/device/registration/index'),
      meta: { title: '登记', icon: '' },
      children: [
        {
          path: 'checklist',
          component: () => import('@/views/device/registration/checklist'),
          name: 'checklist',
          meta: { title: '检查单', icon: '' }
        },
        {
          path: 'maintain',
          component: () => import('@/views/device/registration/maintain'),
          name: 'maintain',
          meta: { title: '保养单', icon: '' }
        },
        {
          path: 'repair',
          component: () => import('@/views/device/registration/repair'),
          name: 'repair',
          meta: { title: '维修单', icon: '' }
        },
        {
          path: 'scrap',
          component: () => import('@/views/device/registration/scrap'),
          name: 'scrap',
          meta: { title: '报废单', icon: '' }
        }
      ]
    },
    {
      path: '/device/report',
      name: 'report',
      component: () => import('@/views/device/report/index'),
      meta: { title: '报表', icon: '' },
      children: [
        {
          path: 'checklistReport',
          component: () => import('@/views/device/report/checklist'),
          name: 'checklistReport',
          meta: { title: '检查单报表', icon: '' }
        },
        {
          path: 'maintainReport',
          component: () => import('@/views/device/report/maintain'),
          name: 'maintainReport',
          meta: { title: '保养单报表', icon: '' }
        },
        {
          path: 'repairReport',
          component: () => import('@/views/device/report/repair'),
          name: 'repairReport',
          meta: { title: '维修单报表', icon: '' }
        },
        {
          path: 'scrapReport',
          component: () => import('@/views/device/report/scrap'),
          name: 'scrapReport',
          meta: { title: '报废单报表', icon: '' }
        }
      ]
    }
  ]
}

export default advertisingSpaceRouter